package com.restaurant.application.genshanguser.support;

import com.nebutown.base.data.ViewUpdate;
import com.nebutown.supporthome.AbstractImpl;
import com.nebutown.supporthome.CmdCapsule;
import com.restaurant.application.genshanguser.GenShangUser;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public abstract class AbstractGenShangUser extends AbstractImpl implements GenShangUser {

    private static final Logger logger = LoggerFactory.getLogger(GenShangUser.class);

    public final Class<?> getEffectiveInterface() {
        return GenShangUser.class;
    }

    public Logger getLogger() {
        return logger;

    }

    private static final String privateDataType = "GenShangUserData";

    public GenShangUserData getData() {
        return escort.getData(GenShangUserData.class);
    }

    public void setData(GenShangUserData data) {
        escort.setData(data);
    }
    public static CmdCapsule CMD_SAVE = new CmdCapsule("save", 0, GenShangUserData.class);
    public abstract ViewUpdate save(GenShangUserData save, int[] seq);
    public static CmdCapsule CMD_CANCEL = new CmdCapsule("cancel", 1, null);
    public abstract ViewUpdate cancel(int[] seq);
}
